package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-审批附件列表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_oa_file")
@ApiModel(value = "ErpOaFile对象", description = "ERP系统-审批附件列表")
public class ErpOaFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("审批实例ID")
    private Integer instanceId;

    @ApiModelProperty("是否是主要文件 1-是 0-否")
    private Integer isMain;

    @ApiModelProperty("版本号，每次修改后加1")
    private Integer version;

    @ApiModelProperty("文件标题")
    private String title;

    @ApiModelProperty("文件路径")
    private String fileUrl;

    @ApiModelProperty("文件路径(无痕迹)")
    private String acceptUrl;

    @ApiModelProperty("文件类型 doc、xls")
    private String fileType;

    @ApiModelProperty("文件大小KB")
    private Integer size;

    @ApiModelProperty("最后编辑时间")
    private Date lastEditTime;

    @ApiModelProperty("最后编辑人")
    private Integer lastEditUser;

    @ApiModelProperty("最后编辑人姓名")
    private String lastEditName;

    @ApiModelProperty("是否删除 1-已删除 0-未删除")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建人")
    private Integer createUser;

    @ApiModelProperty("创建人姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
